@extends('Layout/layout')
@section('yemian')
<style type="text/css">
    .e_css {
    background: url(/public/images/lift_li_02_02.gif) no-repeat;
    width: 179px;
    font-weight: bold;
    color: #000;
    z-index: 1;
    }
</style>
<script type="text/javascript">
    $(document).ready(function(){ 
     
        document.getElementById("person").className = "e_css";
    }); 
</script>
<link rel="stylesheet" type="text/css" href="/public/css/datedropper.css">
<link rel="stylesheet" type="text/css" href="/public/css/timedropper.min.css">

<style type="text/css">
.demo{margin:80px auto 40px auto;width:320px}
.input{padding:6px;border:1px solid #d3d3d3}

*{margin:0;padding:0;list-style-type:none;}
a,img{border:0;}
body{font:12px/180% Arial, Helvetica, sans-serif, "新宋体";}
/* demo */
.demo{width:500px;margin:40px auto;}
.demo span{display:inline-block;width:240px;}
.demo span input{padding:3px;width:120px;font-size:12px;font-family:Arial, Helvetica, sans-serif;}
</style>
<form action="{{ url('Personnel/Recruit/insert') }}" method="post" enctype="multipart/form-data">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mian_b_bg_xz">
<tr>
<td width="5%" class="mian_b_bg_lm">&nbsp;</td>
<td colspan="3" class="mian_b_bg_lm"><h1>招聘添加</h1></td>
</tr>
<tr>
<td>&nbsp;</td>
<td width="10%" valign="top">招聘岗位：</td>
<td width="60%">

<select name="RecruitmentPost">
@foreach($res as $k=>$v)
    <option value="{{$v['PostID']}}">{{$v['PostName']}}</option>
@endforeach
</select>
 </td>
<td width="25%">&nbsp;</td>
</tr>

<tr>
<td>&nbsp;</td>
<td width="10%" valign="top">招聘人数：</td>
<td width="60%">
<input type="text" name="RecruitmentCount" class="input_01">
 </td>
<td width="25%">&nbsp;</td>
</tr>
  


<tr>
<td>&nbsp;</td>
<td width="10%" valign="top">招聘开始日期：</td>
<td width="60%">
<input type="text" class="input_01" id="pickdate" name="RecruitmentDate" /> </td>
<td width="25%">&nbsp;</td>
</tr>

<script type="text/javascript" src="/public/js/jquery-1.12.3.min.js"></script>
<script src="/public/js/datedropper.min.js"></script>
<script src="/public/js/timedropper.min.js"></script>
<script>
$("#pickdate").dateDropper({
    animate: false,
    format: 'Y-m-d',
    maxYear: '2020'
});

</script>
<tr>
<td>&nbsp;</td>
<td width="10%" valign="top">招聘结束时间：</td>
<td width="55%">
<input style="width:200px;height:20px;"  class="input_01" type="text" name="Date" onclick="SelectDate(this,'yyyy-MM-dd hh:mm:ss')"/>
<td width="35%">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td width="10%" valign="top">招聘要求：</td>
<td width="60%">
	<textarea  name="RecruitmentConditions" clos="30" rows="5" ></textarea>   
</td>
<td width="25%">&nbsp;</td>
</tr>




{{ csrf_field()}}
<tr>
<td>&nbsp;</td>
<td width="10%" valign="top"></td>
<td width="60%">

<input type="submit" value="添加">
<input type="reset" value="重置">
</td>
<td width="25%">&nbsp;</td>
</tr>
</table>
</form>
@if (count($errors) > 0)
    <div style="background-color: #d9edf7;border-color: #bce8f1;color: #31708f;border-radius: 4px;margin-bottom: 20px;
    padding: 15px;">
        <ul>
            @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    </div>
@endif
@endsection